package cn.com.jit.hl.demo.entity;

import cn.hutool.core.clone.CloneRuntimeException;
import cn.hutool.core.clone.Cloneable;
import lombok.Data;

@Data
public class Cat implements Cloneable<Cat>{
    private String name;
    private int age;


    @Override
    public Cat clone(){
        try {
            return (Cat) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new CloneRuntimeException(e);
        }
    }
}
